//
//  UIVIe+Extension.swift
//  weibo
//
//  Created by zzx on 2017/7/22.
//  Copyright © 2017年 zzx. All rights reserved.
//

import UIKit

extension UIView {

    
    var x: CGFloat{
    
        get{
            
            return frame.origin.x
        
        } set {
            
            frame.origin.x = newValue
            
        }
    
    
    }

    
    var y: CGFloat{
        
        get{
            
            return frame.origin.y
        
        } set{
            
            frame.origin.x = newValue
        }
        
    }

    
    var height: CGFloat{
        
        get{
        
            return frame.size.height
            
        } set {
        
            frame.size.height = newValue
        
        }
        
        
    }
    
    var width: CGFloat{
    
        get{
        
            return frame.size.width
        
        } set{
        
            frame.size.width = newValue
        
        }
    
    }
    
    



}
